import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { Home1Component } from './entrance/home1/home1.component';
import { LoginComponent } from './entrance/login/login.component';
import { RegisterComponent } from './entrance/register/register.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NzMessageModule } from 'ng-zorro-antd/message';
// 引入material库的组件
import {MatInputModule} from '@angular/material/input';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatCardModule} from '@angular/material/card';
import {MatToolbarModule} from '@angular/material/toolbar';
import {MatButtonModule} from '@angular/material/button';
import {MatIconModule} from '@angular/material/icon';
import {FormsModule} from "@angular/forms";
// import { MoviesComponent } from './firstPage/movies/movies.component';
// import { MovieDetailComponent } from './firstPage/movie-detail/movie-detail.component';
import { AppRoutingModule } from './app-routing.module';
// import { ToolbarComponent } from './firstPage/toolbar/toolbar.component';
import { FirstPageModule } from './firstPage/first-page.module';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { IconsProviderModule } from './icons-provider.module';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';
// import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { en_US } from 'ng-zorro-antd/i18n';
import en from '@angular/common/locales/en';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { HttpClientModule} from '@angular/common/http';
import { NzEmptyModule } from 'ng-zorro-antd/empty';
registerLocaleData(zh);
@NgModule({
  declarations: [
    AppComponent,
    Home1Component,
    LoginComponent,
    RegisterComponent,
    // MoviesComponent,
    // MovieDetailComponent,
    // ToolbarComponent
  ],
  imports: [
    HttpClientModule,
    BrowserModule,
    BrowserAnimationsModule,
    MatInputModule,
    MatCheckboxModule,
    MatCardModule,
    MatToolbarModule,
    MatButtonModule,
    MatIconModule,
    FormsModule,
    AppRoutingModule,
    FirstPageModule,
    NgZorroAntdModule,
    IconsProviderModule,
    NzLayoutModule,
    NzMenuModule,
    NzMessageModule,
    NzModalModule,
    NzEmptyModule
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
